package com.carey.blog.repository.impl;

import java.util.logging.Logger;

import com.carey.blog.framework.latke.repository.gae.AbstractGAERepository;
import com.carey.blog.model.Statistic;
import com.carey.blog.repository.StatisticRepository;

/**
 * Statistic Google App Engine repository.
 * 
 */
public final class StatisticGAERepository extends AbstractGAERepository
		implements StatisticRepository {

	/**
	 * Logger.
	 */
	private static final Logger LOGGER = Logger
			.getLogger(StatisticGAERepository.class.getName());

	@Override
	public String getName() {
		return Statistic.STATISTIC;
	}

	/**
	 * Gets the {@link StatisticGAERepository} singleton.
	 * 
	 * @return the singleton
	 */
	public static StatisticGAERepository getInstance() {
		return SingletonHolder.SINGLETON;
	}

	/**
	 * Private default constructor.
	 */
	private StatisticGAERepository() {
	}

	/**
	 * Singleton holder.
	 * 
	 */
	private static final class SingletonHolder {

		/**
		 * Singleton.
		 */
		private static final StatisticGAERepository SINGLETON = new StatisticGAERepository();

		/**
		 * Private default constructor.
		 */
		private SingletonHolder() {
		}
	}
}
